-- 豌豆射手类
local Plant = require("app.mode.Plant")
local PeaShooter = require("app.mode.PeaShooter")

local SnowShooter = {}
setmetatable(SnowShooter, PeaShooter)
SnowShooter.__index = SnowShooter

-- 重写功能函数
function SnowShooter:doFunc()
    local x, y = self:getLogicPosition()
    
    if self._scene and Plant:getZCount(y) > 0 then
        x, y = self:getPosition()
        self:newWeapon("snowpea", x + 20, y + 24)
    end
end

return SnowShooter
